package com.watchme.license.create;

public class licenseCreateTest {
	public static void main(String[] args) {
		//String licUrl = createLicense();
		String licUrl = createTempLicense();
		System.out.println(licUrl);
	}
	
	
	public static String createLicense(){
		CreateLicense cLicense = new CreateLicense();
		String licPath = "E:/9exce/iodlicense/";
		String ipAddress = "172.16.64.182";
		String macAddress = "00-28-F8-7A-CD-51";
		String notBefore = "2017-11-01";
		String notAfter = "";
		String licenseId = "dadedfda1223123d";
		cLicense.setParam(licPath, ipAddress, macAddress, notBefore, notAfter, licenseId);
		//
		String licUrl = cLicense.create();
		return licUrl;
	}
	public static String createTempLicense(){
		CreateLicense cLicense = new CreateLicense();
		String licPath = "E:/9exce/iodlicense/";
		
		cLicense.setTempParam(licPath);
		String licUrl = cLicense.create();
		return licUrl;
	}
}
